package com.drivemanage.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.drivemanage.entry.DriveResult;
import com.drivemanage.service.ExpInfoService;

@Controller
@RequestMapping("/exp")
public class ExperienceController {
	
	@Resource
	private ExpInfoService expservice;
	
	@ResponseBody
    @RequestMapping("/showTestList.do")
    public DriveResult showTestList(String testTag,String userid) {
        return expservice.showTestList(testTag,userid);
    }
	
	@ResponseBody
	@RequestMapping("/writeArt.do")
	public DriveResult writeArt(String title,String role,String orderid){
		return expservice.writeArt(title,role,orderid);
	}
	
	@ResponseBody
	@RequestMapping("/testDetail.do")
	public DriveResult testDetail(String artid){
		return expservice.testDetail(artid);
	}
}
